package city.spring.modules.material.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 实体类：物资盘点计划与物资关系表
 *
 * @author 谢金婷
 * @date 2020-07-27 09:44:32
 */
@Data
@TableName("materialinventory_material_ext")
public class MaterialinventoryMaterialExtEntity implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 盘点计划编号
     */
    private String materialinventoryId;

    /**
     * 物资库存表id
     */
    private String materialquantityId;

    /**
     * 仓库名称
     */
    private String storehouseId;
    @TableField(exist = false)
    private String sname;

    /**
     * 物资名称
     */
    private String materialId;
    @TableField(exist = false)
    private String name;

    /**
     * 总库存数量
     */
    private BigDecimal quantity;

    /**
     * 计量单位
     */
    private String unitmeasurement;

    /**
     * 盘点数量
     */
    private BigDecimal inventoryquantity;

    /**
     * 损益值
     */
    private BigDecimal profitAndLoss;

    /**
     * 盘点时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date inventorydate;

    /**
     * 盘点出入库数量
     */
    private BigDecimal inventoryWdQuantity;

    /**
     * 盘点出入库时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date inventoryWdDate;

    /**
     * 盘点出入库人员
     */
    private String usersId;
    @TableField(exist = false)
    private String username;


    /**
     * 差异原因
     */
    private String reason;

}